import service from '@/utils/request'


export const merchantApi = (id: number) => {
	return service.get('/sys/merchant/' + id)
}

export const merchantListApi = () => {
	return service.get('/sys/merchant/allList')
}

export const merchantSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/merchant', dataForm)
	} else {
		return service.post('/sys/merchant', dataForm)
	}
}


